Ext.define("component.proces.history",{
	extend : 'Ext.panel.Panel',
	config : {
		processInstanceId : '',
		contextPath:'',
	},
	setAutidStatusName:function(auditStatus){
		
	},
	setProcesHistoryVisible:function(processFlag){
		if(processFlag=="true" || processFlag==true){
			Ext.getCmp("historyPanel").setVisible(false);
		}
	},
	initComponent : function() {
		var me = this;
		var processInstanceId = this.processInstanceId;
		var contextPath = this.contextPath;
		var requestUrl=contextPath+"/processComponent/processSchedule?processInstanceId="+processInstanceId;
		var defaultConfig = {
				defaults: {  
		            split: true,    //有分割线  
		            collapsible: true  //可以折叠
		        },
		        id:'historyPanel',
		        title:"审批进度",
		        html: '<iframe src="'+requestUrl+'" width="100%" height="100%"></iframe>',
		};
		Ext.apply(this,defaultConfig);
		this.callParent();
		
	},collapsible:false
	
});